package com.test.enity;

public class Worker extends Person{
    public Worker(String name,int age,String sex){
        super(name,age,sex);
    }

    public void work(){
        System.out.println("我是"+super.name+"我在工作！");
    }

    @Override
    public void exam() {
        System.out.println("D");
    }
}

